syntax on
filetype plugin indent on

set si hls is nu cul
set sw=4 ts=4 sts=4 et

set scrolloff=5
set updatetime=100
"set shortmess+=c
"set signcolumn=yes


" map:  nore: no recurse, n,v,i,c(cmd), un(undo this map)
map <silent> \\ :source $MYVIMRC<CR>
map \h :noh<CR>
map \n :set nu! nu?<CR>
map \t :set et! et?<CR>
map \l :set cul! cul?<CR>
map \p :set paste! paste?<CR>
map \c :set ignorecase! ignorecase?<CR>
map \<space> gg=G''

set hidden " switch buffer(when edit) will not get a warning to save.
inoremap <silent> <F7> <Esc>:bp<CR>
inoremap <silent> <F8> <Esc>:bn<CR>
noremap  <silent> <F7> <Esc>:bp<CR>
noremap  <silent> <F8> <Esc>:bn<CR>

noremap <C-k> 10k
noremap <C-j> 10j

set termguicolors
colorscheme ayu_dark


if filereadable(".vimrc")
    echo "vimrc added"
    source .vimrc
endif
